package com.ruoyi.system.domain;


import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.data.annotation.Id;

import javax.validation.constraints.Size;
import java.sql.Array;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Column extends BaseEntity {

    @Id
    private Long columnId ;
//    private Long columnId;
    @Excel(name = "栏目名称")
    @Size(max = 6,message = "栏目名称不能超过6个字")
    private String columnName;
    @Excel(name = "栏目类型")
    private String cloumnType;
    @Excel(name = "栏目排序")
    private Long sortOrder;
    @Excel(name = "链接地址")
    private String linkAddress;
    @Excel(name = "父级id")
    private Long parentId;
    @Excel(name = "隐藏")
    private String visible;
    @Excel(name = "删除标志")
    private String delFlag;

    private String ancestors;

    public String getAncestors() {
        return ancestors;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }

    private List<Column> children= new ArrayList<>();

    public List<Column> getChildren() {
        return children;
    }

    public void setChildren(List<Column> children) {
        this.children = children;
    }

    public Long getColumnId() {
        return columnId;
    }

    public void setColumnId(Long columnId) {
        this.columnId = columnId;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getCloumnType() {
        return cloumnType;
    }

    public void setCloumnType(String cloumnType) {
        this.cloumnType = cloumnType;
    }

    public Long getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Long sortOrder) {
        this.sortOrder = sortOrder;
    }

    public String getLinkAddress() {
        return linkAddress;
    }

    public void setLinkAddress(String linkAddress) {
        this.linkAddress = linkAddress;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getVisible() {
        return visible;
    }

    public void setVisible(String visible) {
        this.visible = visible;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "Column{" +
                "columnId=" + columnId +
                ", columnName='" + columnName + '\'' +
                ", cloumnType='" + cloumnType + '\'' +
                ", sortOrder=" + sortOrder +
                ", linkAddress='" + linkAddress + '\'' +
                ", parentId=" + parentId +
                ", visible='" + visible + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", ancestors='" + ancestors + '\'' +
                ", children=" + children +
                '}';
    }
}
